-- GENERATED SPELL FOR [New Agamand Deathguard] --


function spell0_24104(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24104', 5261, 1)
end

function spell1_24104(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24104', 2274, 1)
end

function Sorts_24104(pUnit, Event)
local choix_sorts_24104 = math.random(0, 1)
if choix_sorts_24104 == 0 then
pUnit:RegisterEvent('spell0_24104', 1, 1)
end
if choix_sorts_24104 == 1 then
pUnit:RegisterEvent('spell1_24104', 1, 1)
end
end

function mob24104_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24104', math.random(1500, 3000), 1)
end

function mob24104_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24104_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24104_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24104, 1, 'mob24104_Action')
RegisterUnitEvent(24104, 2, 'mob24104_Leave')
RegisterUnitEvent(24104, 3, 'mob24104_Kill')
RegisterUnitEvent(24104, 4, 'mob24104_Die')
